class Comment < ActiveRecord::Base
  belongs_to :user, :counter_cache => true
  belongs_to :post, :counter_cache => true
  belongs_to :parent, :class_name => "Comment"
  has_many :comments, :foreign_key => :parent_id, :dependent => :destroy
  acts_as_voteable
end
